export default {
	data() {
		return {

		}
	},
	mounted() {

	},
	beforeDestroy() {

	},
	activated() {

	},
	deactivated() {

	},
	methods: {
		getTopicClass(topic) {
			var theClass = '';
			if(this.questionIndex == topic.questionIndex) {
				theClass += 'doing';
			} else {
				if((topic.questionType != 'SHORT' && topic.questionType != 'ANALYSIS') && topic.isError == 1) {
					theClass += 'error';
				} else if((topic.questionType != 'SHORT' && topic.questionType != 'ANALYSIS') && topic.isError == 2) {
					theClass += 'correct';
				} else if(topic.overed) {
					theClass += 'overed';
				}
			}
			return theClass;
		},
		getArray(questionType) {
			return this[questionType];
		},
		getScore(questionType) {
			return this[questionType + "NUM"];
		},
		pushList(item) {
			this[item.questionType].push(item);
			this.questions.push(item);
			this[item.questionType + 'NUM'] += item.score;
		},
	}
}